package servlets;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import bean.Member;
import bean.MemberAdm;


@SuppressWarnings("serial")
public class ModifyMemServlet extends HttpServlet{
	protected void doPost(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		HttpSession session = req.getSession();
		long mid = (Long)session.getAttribute("id");
		MemberAdm ma = new MemberAdm();
		Member m = ma.searchMemById(mid);
		
		req.setAttribute("mem", m);
		req.getRequestDispatcher("./member/modifyData.jsp").forward(req, resp);
	}
}
